*Stata do file to replicate Nigeria case study in "Individual Identity Attachments and International Conflict: The Importance of Territorial Threat" 
*by Douglas M. Gibler, Marc L. Hutchison, and Steven M. Miller
*Comparative Political Studies 45(12): 1655-1683
*************************************************************
*open .dta file titled "Nigeria WVS data 1995 & 2000.dta"


*To generate the results found in Figure 2
*Overall national averages of Nigerians selecting national identity
tab identity if year==1995
tab identity if year==2000

*Difference between East Region and National Average in 2000 (6.5%)
tab identity if year==2000 & east!=1
tab identity if year==2000 & east==1

*Difference between North Region and National Average in 2000 (16.0%)
tab identity if year==2000 & north!=1
tab identity if year==2000 & north==1

*Difference between West Region and National Average in 2000 (4.6%)
tab identity if year==2000 & west!=1
tab identity if year==2000 & west==1


*To generate the results discussed in text and not displayed in Figure 2
*Difference between East Region and National Average in 1995 (11.4%)
tab identity if year==1995
tab identity if year==1995 & east==1

*Difference between North Region and National Average in 1995 (4.4%)
tab identity if year==1995
tab identity if year==1995 & north==1

*Difference between West Region and National Average in 1995 (1.9%)
tab identity if year==1995
tab identity if year==1995 & west==1

*Difference between West Region and National Average in 2000 (3.3%)
tab identity if year==2000
tab identity if year==2000 & west==1

